package com.leyou.item.mapper;

import com.leyou.item.entity.Spu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface SpuMapper  extends Mapper<Spu>{
    @Update("UPDATE  tb_spu SET saleable=#{sale} where id=#{id}")
    void updateSaleableById(@Param("id") Long id, @Param("sale")Boolean sale);
}
